<template>
  <div>
      关于我们
  </div>
</template>

<script>
export default {
    beforeCreate(){
        console.log("beforeCreate");
    },

    beforeRouteEnter(to, from, next){
        //不想初始组件，没有this
        console.log(this);
        console.log("beforeRouteEnter");
        // next()
        //回调函数打印实例
        next((vm)=>{
            console.log(vm);
        })
    },
    beforeRouteUpdate(to, from, next){
        console.log(this);
        console.log("beforeRouteUpdate");
        next()
    },
    mounted(){
        console.log("mounted");
    },
    beforeRouteLeave(to, from, next){
        console.log("beforeRouteLeave");
        next()
    },
    beforeDestroy(){
        console.log("beforeDestroy");
    },
    destroyed(){
        console.log("destroyed");
    },


}
</script>

<style>

</style>